//
//  M1EditDetailsCell.m
//  NewMarryU
//
//  Created by Cedar on 2018/7/13.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1EditDetailsCell.h"

@implementation M1EditDetailsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.m1_content.hidden = YES;

}

- (void) setTitle:(NSString *)title content:(NSString *)content{
    
    self.m1_content.hidden = NO;

    self.m1_title.text = title;
    
    if ([content length] > 0) {
        self.m1_content.textColor = m1_color(0x333333);
        if ([title isEqualToString:@"身高"]) {
            self.m1_content.text = [NSString stringWithFormat:@"%@cm", content];
        }else{
            self.m1_content.text = content;
        }
    }else{
        if ([title isEqualToString:@"微信号"] || [title isEqualToString:@"职位"]) {
            self.m1_content.text = @"请输入";
        }else if ([title isEqualToString:@"来自"] || [title isEqualToString:@"年收入"] || [title isEqualToString:@"身高"]){
            self.m1_content.text = @"请选择";
        }
        self.m1_content.textColor = m1_color(0x666666);
    }
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
